
require( '../models/association' );

const Topic = require( '../models/topic' );
const Customer = require( '../models/customer' );

Topic.findOne({ 
        where: { id: 4 } , 
        include: Customer 
     }).then( result => {
        console.log( '执行结果:' , result.toJSON() );
        console.log( result.customer.toJSON() );
     }).catch( error => {
         console.log( '出事故了:' , error );
     });